<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>3.字符串的split方法</title>
  </head>
  <body>
    <script type="text/javascript" >
      let a = 'li-si'
      const [q,w] = a.split('-')
      console.log(q,w)
    </script>
  </body>
</html>